import { axios } from '@/utils/request'

// 启用\停用应用
export function biUserApplicationIsEnable (parameter) {
  return axios({
    url: '/biUserApplication/isEnable',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询用户应用列表
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
 export function listByUser (id) {
  return axios({
    url: `/biUserApplication/listByUser/${id}`,
    method: 'get'
  })
}
/**
 * 查询用户列表
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
 export function userList (parameter) {
  return axios({
    url: '/sysUser/userList',
    method: 'get',
    params: parameter
  })
}

/**
 * 查询用户应用
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
export function biUserApplicationPage (parameter) {
  return axios({
    url: '/biUserApplication/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 用户应用列表
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
export function biUserApplicationList (parameter) {
  return axios({
    url: '/biUserApplication/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加用户应用
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
export function biUserApplicationAdd (parameter) {
  return axios({
    url: '/biUserApplication/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑用户应用
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
export function biUserApplicationEdit (parameter) {
  return axios({
    url: '/biUserApplication/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除用户应用
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
export function biUserApplicationDelete (parameter) {
  return axios({
    url: '/biUserApplication/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出用户应用
 *
 * @author zj
 * @date 2022-08-09 11:43:02
 */
export function biUserApplicationExport (parameter) {
  return axios({
    url: '/biUserApplication/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
